import { axios } from '@/utils/request'
import globalReq from "@/api/globalReq";
const sysParameter_url = "/api/v1/sys/sysParameter/";
const sys_sysParameter = {
    // 添加
    saveOrUpdate(parameter,flag) {
		return globalReq.saveOrUpdate(parameter,flag,sysParameter_url);
    },
    // 获取列表
    list(parameter) {
		return globalReq.list(parameter,sysParameter_url+'list');
    },
    // 获取信息
    getById(id) {
		return globalReq.getById(id,sysParameter_url+'getById/'+id);
    },
	// 获取信息
	getByNumb(numb) {
		return axios({
		    url: sysParameter_url+'getByNumb/'+numb,
		    method: 'get'
		});
	},
    // 删除
    remove(id) {
		return globalReq.remove(id,sysParameter_url+'delete/'+id);
    }
}
export default sys_sysParameter;